package com.minsf.springbootinit.awareTest;

import cn.hutool.core.lang.Assert;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

/**
 * @Description
 * @Author minify
 * @Date 2024/1/2 15:15
 * @Project oj-backend
 */
@SpringBootTest
@Slf4j
public class AwareUC {

    @Resource
    private MyDemo myDemo;

    @Test
    public void testAware() {
        log.info("测试暴露的属性{}", myDemo.toString());
        String demoField = myDemo.getDemoField();
        Assert.isTrue("向外暴露属性推送...".equals(demoField));
    }

}
